import { http } from '@/utils/http'
import { baseURLApi } from '../utils'

export type WebsiteInfo = {
  avatar: string
  nickname: string
  motto: string
  bgImage: string
  giteeUrl: string
  githubUrl: string
  title: string
  headNotice: string
  sidebarNotice: string
  icpRecord: string
  startTime: string
  lastUpdateTime: string
  articleCount: number
  categoryCount: number
  tagCount: number
  visitCount: number
  wordCount: number
  introduction: string
}

// 获取网站信息
export const getWebsiteInfo = () => {
  return http.request<WebsiteInfo>('get', baseURLApi('/siteInfo'))
}

// 查询banner列表
// export async function backGetBanners() {
//   return http.request({
//     url: baseURLApi("/banners/list"),
//     method: "get",
//   });
// }
